home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Backups / FBackNG / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-30  |  909 b   |  38 lines

  1. /*
  2. ** Config.h
  3. **
  4. ** $VER: Config.h 1.01 (29.5.96)
  5. **
  6. ** Copyright (C) 1996, Adam Dawes
  7. **
  8. ** Refer to accompanying documentation for further details
  9. */
  10. #include <proto/exec.h>
  11. #include <proto/dos.h>
  12.  
  13. extern int WriteConfig(char *filename, char *section, char *item, char *data);
  14. extern int WriteConfigNumber(char *filename, char *section, char *item, long data);
  15. extern int ReadConfig(char *filename, char *section, char *item, char *buffer, int bufsize, char *def);
  16. extern long ReadConfigNumber(char *filename, char *section, char *item, long def);
  17.  
  18. void init_list(struct List *lst);
  19. int add_list_item(struct List *lst, char *item);
  20. void free_list(struct List *lst);
  21.  
  22. int is_section(char *cfgdata);
  23.  
  24.  
  25. #define ISSECTION(str) ((str)[0] == '[' && (str)[strlen(str)-1] == ']')
  26.  
  27.  
  28. #define BUFFERSIZE 256
  29.  
  30.  
  31. #define CFG_WRITE_SUCCESS 1
  32. #define CFG_WRITE_FAIL 0
  33.  
  34. #define CFG_READ_SUCCESS 1
  35. #define CFG_READ_FAIL 0
  36.  
  37.  
  38.